package com.shiminghui;

public class LuoJiYunSuanFu {
    public static void main(String[] args) {
        System.out.println(true^true);
        System.out.println(true^false);
        System.out.println(!true);
        System.out.println(true&false);
        //短路逻辑运算符(左边为假,则右边不执行,)
        System.out.println(true&&true);
        //左边为真,则右边不执行
        System.out.println(true||false);

        int a = 10;
        int b = 11;
        boolean result = ++a<11&&++b>10;
        System.out.println(result+""+a+" "+b);
    }
}
